<template>
  <Checkbox :checked="checked" @change="checked = !checked"/>
</template>
<script>
import {createModelProps, createProps} from '@/utils';
import {Checkbox} from 'ant-design-vue';

export default {
  name: 'PassNodeCannotWithdrawInput',
  components: {
    Checkbox,
  },
  model: createModelProps(),
  props: {
    value: createProps(Boolean)
  },
  methods: {
    change(v) {
      this.$emit('change', v);
    },
  },
  computed: {
    checked: {
      get() {
        return !!this.value
      },
      set(v) {
        this.change(v)
      },
    }
  }
}
</script>